﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CustomerLogin.ascx.cs"
    Inherits="UserControls_CustomerLogin" %>
<%@ Register Src="CartShow.ascx" TagName="CartShow" TagPrefix="uc1" %>
<%@ Register Assembly="Shove.Web.UI.4 For.NET 2.0" Namespace="Shove.Web.UI" TagPrefix="ShoveWebUI" %>

<script language="javascript" type="text/javascript">
    function isNulls()
    {
        if(document.getElementById('<%=this.txtUserName.ClientID%>').value=="")
        {
            alert("请输入用户名！");
            return false;
        }
        if(document.getElementById('<%=this.txtPassword.ClientID%>').value=="")
        {
            alert("请输入密码！");
            return false;
        } 
        if(document.getElementById('<%=this.txtCode.ClientID%>').value=="")
        {
            alert("请输入验证码！");
            return false;
        } 
        
    }
</script>

<table width="200" border="0" cellpadding="0" cellspacing="0" id="tabctr"
        runat="server" style="height: 148px">
        <tr>
            <td height="27" colspan="3" background="images/UserControls/index_1_03.jpg" class="new">
                &nbsp;会员中心
            </td>
        </tr>
        <tr>
            <td width="1" bgcolor="#6BA5FC" id="tdspace" runat="server">
            </td>
            <td width="200" bgcolor="#F0F9FD" valign="top">
            <table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="27%" id="tdname" runat="server" >
                            用户名：
                        </td>
                        <td colspan="2">
                            <label>
                                <asp:TextBox ID="txtUserName" runat="server" ></asp:TextBox></label>
                        </td>
                    </tr>
                    <tr>
                        <td  id="tdpsw" runat="server">
                            密 码：
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" ></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td  id="tdcode" runat="server">
                            验证码：
                        </td>
                        <td width="35%">
                            <asp:TextBox ID="txtCode" runat="server" ></asp:TextBox>
                        </td>
                        <td width="38%">
                            <ShoveWebUI:ShoveCheckCode ID="ShoveCheckCode1" runat="server" Charset="OnlyNumeric"
                                SessionKeyName="ShoveWebUI_CheckCode_CheckCode" SupportDir="~/ShoveWebUI_client" />
                        </td>
                    </tr>
                </table>
                <table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="34%">
                            <asp:ImageButton ID="ibLogin" runat="server"
                                 OnClick="ibLogin_Click" OnClientClick="return isNulls()" />
                        </td>
                        <td width="39%">
                            <asp:ImageButton ID="ibRegister" runat="server" 
                                 OnClick="ibRegister_Click" />
                        </td>
                        <%--<td width="27%" id="tdforget" runat="server">
                            <a href="#" runat="server" id="aforget">忘记密码</a>
                        </td>--%>
                    </tr>
                </table>
            </td>
            <td width="1" bgcolor="#6BA5FC">
            </td>
        </tr>
        <tr>
            <td height="1" colspan="3" bgcolor="#6BA5FC">
            </td>
        </tr>
</table>
